
import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { SqlSugarPagedList, BaseKeywordPageInput } from '/@/api/BaseDto';

import { TraFuHeInput } from './dto/TraFuHeInput';
import { TraFuHeOutput } from './dto/TraFuHeOutput';

export type { TraFuHeInput, TraFuHeOutput, };

const service = 'traFuHe/'; // 要写后面的斜杠, 不要写前面的斜杠

export const TraFuHeApi = {
	page: (data: BaseKeywordPageInput) => {
		return axiosPost<SqlSugarPagedList<TraFuHeOutput>>(service + 'page', data);
	},
	get: (id: number) => {
		return axiosGet<TraFuHeOutput>(service + `get/${id}`);
	},
	add: (data: TraFuHeInput) => {
		return axiosPost<TraFuHeOutput>(service + 'add', data);
	},
	update: (data: TraFuHeInput) => {
		return axiosPost<boolean>(service + 'update', data);
	},
}
